Instance Methods
The following instance methods are available globally.
-
Returns
MinMaxLonLatof this collection’s coordinates.Declaration
Swift
public func minMaxLatLon() -> MinMaxLatLon?Return Value
MinMaxLonLatof this collection’s coordinates. Will returnniliff there are no coordinates in this collection. -
Returns centroid of polygon with this list of coordinates.
Declaration
Swift
public func centroid() -> CLLocationCoordinate2DReturn Value
Centroid of polygon formed by this list of coordinates.
-
Returns whether point at given coordinates is contained in this polygon or not.
Declaration
Swift
public func contains(pointAt coordinates: CLLocationCoordinate2D) -> BoolParameters
coordinatesCoordinates of point to be checked.
Return Value
trueif point is contained in this polygon. -
Returns coordinates of points of this polygon.
Declaration
Swift
public func coordinates() -> [CLLocationCoordinate2D]
-
Returns
MinMaxLonLatcovered by polygons in this collection.Declaration
Swift
public func minMaxLatLon() -> MinMaxLatLon?Return Value
MinMaxLonLatcovered by polygons in this collection.niliff collection has no polygons.
-
Returns WKT multipolygon for this polygon.
Declaration
Swift
public func wktMultipolygonString() -> String -
Returns WKT polygon without type declaration, useful to combine this to create complex multipolygons.
Declaration
Swift
internal func wktPolygonString() -> String -
Returns multipolygon for this collection of polygons.
Declaration
Swift
public func wktMultipolygonString() -> String
View on GitHub
Install in Dash
Instance Methods Reference